package com.fram.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.fram.entity.ProjectGoodsPrice;

public interface ProjectGoodsPriceMapper {

	int deleteByPrimaryKey(Long id);

	int insert(ProjectGoodsPrice record);

	int insertSelective(ProjectGoodsPrice record);

	ProjectGoodsPrice selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(ProjectGoodsPrice record);

	int updateByPrimaryKey(ProjectGoodsPrice record);

	List<ProjectGoodsPrice> selectByGoodsId(Integer status, Long goodsId);

	/** 一对多 多个规格 **/
	List<ProjectGoodsPrice> selectByGoodsIds(@Param("goodsId") Long goodsId);

	int updateBanlanceNumber(@Param("id") Long id, @Param("number") Integer number);

	int updateByGoodsPriceStatus(ProjectGoodsPrice request);

}